home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / Closure / Sources / GX Headers / font library.h next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  2.9 KB  |  108 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        font library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef fontLibraryIncludes
  13. #define fontLibraryIncludes
  14.  
  15. #ifndef powerc
  16.  #pragma pointers_in_D0                            
  17. #endif
  18.  
  19.     #ifndef fontTypesIncludes
  20. #include "font types.h"
  21. /*    #include "math types.h"                                        */
  22. /*        #include <Types.h>                                        */
  23. /*            #include <ConditionalMacros.h>                        */
  24. /*            #include <MixedMode.h>                                */
  25. /*                #include <Traps.h>                                */
  26.     #endif
  27.  
  28.     #ifndef graphicsTypesIncludes
  29. #include "graphics types.h"
  30.     #endif
  31.  
  32.     #ifndef fontRoutinesIncludes
  33. #include "font routines.h"
  34. /*    #include "graphics linkage.h"                                */
  35.     #endif
  36.     
  37. #ifndef powerc
  38.  #pragma pointers_in_A0                            
  39. #endif
  40.  
  41.     #ifdef __cplusplus
  42. extern "C" {
  43.     #endif
  44.  
  45. #define weightVariationTag 0x77676874
  46.  
  47. #define widthVariationTag 0x77647468
  48.  
  49. #define slantVariationTag 0x736c6e74
  50.  
  51. #define opticalScaleVariationTag 0x6f70737a
  52.  
  53. #define prefwghtweighting 0x00010000
  54.  
  55. #define prefwdthweighting 0x00020000
  56.  
  57. #define prefslntweighting 0x00010000
  58.  
  59. #define prefcontweighting 0x00040000
  60.  
  61. enum commonFonts {
  62.     firstCommonFont,
  63.     chicagoFont                    = firstCommonFont,
  64.     courierFont,
  65.     genevaFont,
  66.     helveticaFont,
  67.     monacoFont,
  68.     newyorkFont,
  69.     symbolFont,
  70.     timesFont,
  71.     lastCommonFont                = timesFont
  72. };
  73.  
  74. typedef long commonFont;
  75.  
  76. enum matchingStyles {
  77.     noMatching                    = 0,
  78.     useStyleMatching,
  79.     useVariationsMatching,
  80.     useTextFaceMatching            = 4
  81. };
  82.  
  83. typedef long matchingStyle;
  84.  
  85. extern gxFont GetCommonFont(commonFont font);
  86. extern void SetShapeCommonFont(gxShape target, commonFont font);
  87. extern void SetStyleCommonFont(gxStyle target, commonFont font);
  88. extern gxFont FindCNameFont(gxFontName meaning, const char name[]);
  89. extern gxFont FindPNameFont(gxFontName meaning, const unsigned char name[]);
  90. extern long FindFontCName(gxFont fontID, gxFontName meaning, char name[]);
  91. extern long FindFontPName(gxFont fontID, gxFontName meaning, unsigned char name[]);
  92. extern long FindStyleFontCName(gxStyle source, gxFontName meaning, char name[]);
  93. extern long FindStyleFontPName(gxStyle source, gxFontName meaning, unsigned char name[]);
  94. extern void SetStylePNamedFont(gxStyle target, const unsigned char name[]);
  95. extern void SetStyleCNamedFont(gxStyle target, const char *name);
  96. extern long CountFontFamilies(void);
  97. extern gxFont FindFontFamily(long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  98. extern long CountFontStyles(gxFont family);
  99. extern gxFont FindFontStyle(gxFont family, long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  100. extern void SetMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  101. extern gxStyle ReturnMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  102.     #ifdef __cplusplus
  103. }
  104.     #endif
  105.  
  106. #endif
  107.  
  108.